/* 中国地图背景样式 */
.map-background {
    /* 使用图片作为背景 */
    background-image: url('../assets/map.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    
    /* 添加渐变叠加效果 */
    background: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.3)), url('../assets/map.png') center/cover no-repeat;
    
    /* 设置容器大小和位置 */
    width: 100%;
    height: 100vh;
    position: relative;
    
    /* 添加轻微的阴影效果 */
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.1);
}

/* 调整聊天界面的样式以适应背景 */
.chat-container {
    background: transparent;
    border-radius: 12px;
    box-shadow: none;
    margin: 20px;
    position: relative;
    z-index: 1;
}

/* 调整聊天消息的样式 */
.message {
    max-width: 80%;
    padding: 15px 15px 15px 20px;
    border-radius: 12px;
    position: relative;
    animation: fadeIn 0.3s ease;
    background-color: rgba(255, 255, 255, 0.9); /* 半透明白色背景 */
    backdrop-filter: blur(5px); /* 添加模糊效果 */
    border: 1px solid rgba(255, 255, 255, 0.5);
}

/* 调整用户消息的样式 */
.user-message {
    align-self: flex-end;
    background-color: rgba(74, 111, 165, 0.9);
    color: white;
    border-bottom-right-radius: 4px;
    border-bottom-left-radius: 4px;
}

/* 调整机器人消息的样式 */
.bot-message {
    align-self: flex-start;
    background-color: rgba(255, 255, 255, 0.9);
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
}

/* 调整欢迎消息的样式 */
.welcome-message {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, rgba(74, 111, 165, 0.9), rgba(107, 142, 35, 0.9));
    color: white;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 18px;
    line-height: 1.8;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

/* 调整建议卡片的样式 */
.suggestion-card {
    background: rgba(255, 255, 255, 0.9);
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    flex: 1;
    min-width: 200px;
    text-align: center;
    backdrop-filter: blur(5px);
}

/* 调整按钮的样式 */
.btn {
    background-color: rgba(74, 111, 165, 0.9);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
}

.btn:hover {
    background-color: #3a5a80;
    transform: translateY(-2px);
}

/* 调整输入区域的样式 */
.input-area {
    flex: 1;
    display: flex;
    gap: 10px;
}

.text-input {
    flex: 1;
    padding: 12px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    font-size: 16px;
    resize: none;
    transition: var(--transition);
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
}

.text-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 111, 165, 0.1);
}

.upload-btn {
    padding: 12px;
    background-color: rgba(107, 142, 35, 0.9);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    display: none;
}

.upload-btn:hover {
    background-color: #5a7d1c;
    transform: translateY(-2px);
}

.send-btn {
    padding: 12px 20px;
    background-color: rgba(255, 107, 107, 0.9);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
}

.send-btn:hover {
    background-color: #ff5252;
    transform: translateY(-2px);
}





/* background.css */

.generation-area {
    margin-top: 20px;
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    text-align: center;
}

.action-btn {
    background-color: #4a90e2;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    font-weight: bold;
}

.action-btn:hover {
    background-color: #357abd;
    transform: translateY(-2px);
}

.generation-desc {
    font-size: 12px;
    color: #888;
    margin-top: 10px;
}